package com.javaee.mapper.admin;


import com.javaee.entity.Department;
import com.javaee.entity.Doctor;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;


@Mapper
public interface DoctorMapper {

    int insertDoctor(Doctor doctor);

    List<Doctor> selectAllDoctorsByPage(@Param("startIndex") int startIndex, @Param("perPageSize") int perPageSize);
    int selectCount();

    Doctor selectADoctor(int id);



    int deleteDoctor(int id);

    int updateDoctor(Doctor doctor);
    List<Department> selectAllDepartments();
}
